/*
 * @lc app=leetcode.cn id=710 lang=cpp
 *
 * [710] 黑名单中的随机数
 */
#include "include.h"
// @lc code=start
class Solution {
public:
    Solution(int n, vector<int>& blacklist) {
        n_ = n;
        ;
        // RAND_MAX;
        // srand((unsigned)time(NULL));
        // X = rand() % modNum_;
    }
    
    int pick() {
        srand((unsigned)time(NULL));
        int x = rand() % n_;
        // 0<= x <= n-1
    }
private:
    int n_;
};

/**
 * Your Solution object will be instantiated and called as such:
 * Solution* obj = new Solution(n, blacklist);
 * int param_1 = obj->pick();
 */
// @lc code=end

